package com.example.wx_zl_gzh_demo.common.token;/**
 * $
 $ * @return $
 * @author $
 * @description access_token
 * @date $ $
 */
public class AccessToken {
    private String token;
    private long expireTime;

    public String getToken() {
        return token;
    }

    public void setToken(String token) {
        this.token = token;
    }

    public long getExpireTime() {
        return expireTime;
    }

    public void setExpireTime(long expireTime) {
        this.expireTime = System.currentTimeMillis()+expireTime * 1000;
    }

    public boolean isExpired() {
        return System.currentTimeMillis() > expireTime;
    }
}
